import {BrowserModule} from '@angular/platform-browser';
import {NgModule} from '@angular/core';
import {RouterModule} from '@angular/router';
import {FormsModule} from '@angular/forms';
import {AppComponent} from './app.component';
import {routes} from './app.routes';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {CommonModule} from '@angular/common';
import {DcEventService,DcTablePagingPipe,PluginModule} from 'itcloud-plugin';
import {DragulaService, DragulaModule} from 'ng2-dragula/ng2-dragula';
import {DemoCommonService} from './common/demo-common.service';
import {DemoInterface} from './common/interface/demo.interface';
import { GetPathService } from './get-path.service';                           /**getPath服务；*/
import { AddNoticeComponent } from './add-notice/add-notice.component';       /**创建公告组件；*/
import { MyTodoComponent } from './my-todo/my-todo.component';                /**我的代办；*/
import { MyDoneComponent } from './my-done/my-done.component';                /**我的已办；*/
import { MyFoundComponent } from './my-found/my-found.component';
import { ViewNoticeComponent } from './my-done/view-notice/view-notice.component';
import { DetailNoticeComponent } from './my-found/detail-notice/detail-notice.component';
import { ReplyNoticeComponent } from './my-todo/reply-notice/reply-notice.component';
import { HomeNoticeComponent } from './home-notice/home-notice.component';
import { AddSendeeComponent } from './add-notice/add-sendee/add-sendee.component';
import { ViewReceiverComponent } from './my-found/detail-notice/view-receiver/view-receiver.component';
import { CloseTimeTipComponent } from './my-found/close-time-tip/close-time-tip.component';

@NgModule({
  declarations: [
    AppComponent, AddNoticeComponent, MyTodoComponent, ViewNoticeComponent, DetailNoticeComponent, ReplyNoticeComponent,HomeNoticeComponent, AddSendeeComponent, ViewReceiverComponent, CloseTimeTipComponent, MyDoneComponent, MyFoundComponent
  ],
  imports: [
    BrowserModule,
    PluginModule,
    FormsModule,
    CommonModule,
    DragulaModule,
    BrowserAnimationsModule,
    RouterModule.forRoot(routes, {useHash: true}),
  ],
  providers: [
      DemoCommonService,
      DemoInterface,
      DragulaService,
      DcTablePagingPipe,
      DcEventService,
      GetPathService,       //getPath服务；
  ],
  bootstrap: [AppComponent],
  entryComponents: [
    AddNoticeComponent,
    ReplyNoticeComponent,
    DetailNoticeComponent,
    ViewNoticeComponent,
    AddSendeeComponent,
    ViewReceiverComponent,
    CloseTimeTipComponent
  ]
})
export class AppModule {
}
